@layout("/common/_container.html",{js:["/assets/modular/stock/stock_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="stockForm" lay-filter="stockForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
<!--
                        <input id="numId" name="numId" placeholder="请输入商品ID" type="text" class="layui-input" lay-verify="required" required/>
-->
                        <select id="numId" name="numId" lay-filter="numId" lay-search>

                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">实际库存数量<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="qty" name="qty" placeholder="请输入实际库存数量" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">可销售库存数量<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="saleqty" name="saleqty" placeholder="请输入可销售库存数量" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">所在仓库<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
<!--
                        <input id="ktypeId" name="ktypeId" placeholder="请输入所在仓库" type="text" class="layui-input" lay-verify="required" required/>
-->
                        <select id="ktypeId" name="ktypeId" lay-filter="ktypeId" lay-search>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">售价<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="price" name="price" placeholder="请输入售价" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">成本价<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="costPrice" name="costPrice" placeholder="请输入成本价" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}